#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>

int main()
{
    pid_t ret = fork();
    if(ret < 0)
    {
        perror("fork!");
        return 1;
    }
    else if(ret == 0)
    {
        printf("我是子进程！\n");
    }
    else
    {
        printf("我是父进程！\n");
    }
    return 0;
}
